createTextNode

public abstract Node createTextNode()

Creates and returns a Node object representing a new text node with an empty node value.

Throws

when the document is closed


public abstract Node createTextNode(String text)

Creates and returns a Node object representing a new text node initialized with the given text value.

Parameters

text

the node value

Throws

when the document is closed